#include<stdio.h>
#include<string.h>

#define N 50
#define M 10

void insert(char *s, char *t, int i);
int main(int argc, char *argv[]){
	char s[N] = {"123456789"};
	char t[M] = "999";
	if(N < strlen(s) + strlen(t)){
		printf("ji!\n");
	}else{
		insert(s, t, 2);
	}
	puts(s);
	return 0;
}

void insert(char *s, char *t, int i) {
	int s_len = strlen(s);
	if(i < 0 || i > s_len) return;
	memmove(s + i + strlen(t), s + i, s_len - i + 1);
	memcpy(s + i, t, strlen(t));
}
